
export default function (proto) {

    proto.on = function (key, fn) {
        eventBus[key] = fn;
    }

    proto.emit = function (key, param) {
        if (eventBus[key]) eventBus[key](param);
    }
}

let eventBus = {}
